
export class UserSysInfo {

    public os: string; ////系统字符串 Windows, Android, iOS,Linux, OS X,WP8, Unknown 等等
    public platform: number; //cc.sys.platform=   cc.sys.IPAD== 5   cc.sys.IPHONE== 4
    public osMainVersion: string;
    public osVersion: string;
    public gameVersion: string;      // //游戏版本号

    public static proto2SysInfo(sysInfoPack: any): UserSysInfo {
        let sysInfo:UserSysInfo = new UserSysInfo();
        sysInfo.os = sysInfoPack.getOs();
        sysInfo.platform = sysInfoPack.getPlatform();
        sysInfo.osMainVersion = sysInfoPack.getOsmainversion();
        sysInfo.osVersion = sysInfoPack.getOsversion();
        sysInfo.gameVersion = sysInfoPack.getGameversion();
        return sysInfo;
    }

}